package com.ss.android.article.base.feature.user.location;

import android.content.Intent;
import android.view.View.OnClickListener;
import android.view.View;
import com.ss.android.article.base.feature.user.location.model.Location;
import com.ss.android.article.base.feature.user.location.model.LocationResult;
import java.util.ArrayList;

final class d implements View.OnClickListener {
    private final c b;
    private final Location a;

    d(c arg1, Location arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void onClick(View arg6) {
        if(this.b.a != null) {
            com.ss.android.article.base.feature.user.location.c.a v0 = this.b.a;
            Location v1 = this.a;
            ProvinceSelectedActivity.a(v0.a, new LocationResult());
            ProvinceSelectedActivity.a(v0.a).province = v1.province;
            if(v1.areas != null && !v1.areas.isEmpty()) {
                Intent v2 = new Intent(v0.a, AreaSelectedActivity.class);
                ArrayList v3 = new ArrayList();
                v3.addAll(v1.areas);
                v2.putStringArrayListExtra("area_list", v3);
                v2.putExtra("province", v1.province);
                v0.a.startActivityForResult(v2, 110);
                return;
            }

            ProvinceSelectedActivity.b(v0.a);
        }
    }
}

